package com.jtbd.service.campus;

import com.jtbd.domain.CustomerChildren;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jtbd.domain.CustomerChildrenWithRelationItem;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【customer_children(客户孩子表)】的数据库操作Service
 * @createDate 2025-08-23 11:55:35
 */
public interface CustomerChildrenService extends IService<CustomerChildren> {
    /**
     * 添加客户子女信息
     *
     * @param customerChildrens 客户子女信息列表
     * @param customerId        客户ID
     */
    void addCustomerChildren(List<CustomerChildrenWithRelationItem> customerChildrens, Long customerId);

    /**
     * 添加客户子女信息
     *
     * @param customerChildrens 客户子女信息列表
     * @param customerId        客户ID
     * @param operatorUserId    操作用户ID
     */
    void addCustomerChildren(List<CustomerChildrenWithRelationItem> customerChildrens, Long customerId, Long operatorUserId);

    /**
     * 更新客户子女信息
     *
     * @param customerChildrens 客户子女信息列表
     * @param operatorUserId    操作用户ID
     */
    void updateCustomerChildren(List<CustomerChildrenWithRelationItem> customerChildrens, Long operatorUserId);

    /**
     * 更新单个客户子女信息
     *
     * @param customerChildren 客户子女信息
     * @param operatorUserId   操作用户ID
     */
    void updateCustomerChildrenItem(CustomerChildrenWithRelationItem customerChildren, Long operatorUserId);

}
